<?php
/**
 * 后台首页
 * @author cjli
 *
 */
class IndexAction extends AdminAction
{
	public function _initialize()
	{
		parent::_initialize();
	}
	
	public function index() {
		
		//前台跳过访问屏蔽SESSION
		if(! $_SESSION['is_open_look']){
			$_SESSION['is_open_look'] = C('barred_access_password');
		}
		//顶部菜单
		$topmenu = $this->menu(0);
		$this->assign('topmenu', $topmenu);

		/*管理员收藏栏 快捷方式*/
		$paneldb = D('admin_panel');
		$adminpanel = $paneldb->where(array('userid'=>$_SESSION['admin_user_info']['id']))->limit(10)->order('datetime DESC')->select();
		$this->assign('adminpanel', $adminpanel);
		$this->display('index');
	}
}